package com.dianping.cat.alarm.sender.entity;

import com.dianping.cat.alarm.sender.BaseEntity;
import com.dianping.cat.alarm.sender.IVisitor;
import java.util.ArrayList;
import java.util.List;








public class Sender
  extends BaseEntity<Sender>
{
  private String m_id;
  private String m_url;
  private String m_type;
  private String m_successCode;
  private boolean m_batchSend;
/*  23 */   private List<Par> m_pars = new ArrayList();





  public Sender(String id) { this.m_id = id; }




/*  34 */   public void accept(IVisitor visitor) { visitor.visitSender(this); }


  public Sender addPar(Par par) {
/*  38 */     this.m_pars.add(par);
/*  39 */     return this;
  }


  public boolean equals(Object obj) {
/*  44 */     if (obj instanceof Sender) {
/*  45 */       Sender _o = (Sender)obj;

/*  47 */       if (!equals(getId(), _o.getId())) {
/*  48 */         return false;
      }

/*  51 */       return true;
    }

/*  54 */     return false;
  }


/*  58 */   public boolean getBatchSend() { return this.m_batchSend; }



/*  62 */   public String getId() { return this.m_id; }



/*  66 */   public List<Par> getPars() { return this.m_pars; }



/*  70 */   public String getSuccessCode() { return this.m_successCode; }



/*  74 */   public String getType() { return this.m_type; }



  public String getUrl() { return this.m_url; }






/*  91 */   public boolean isBatchSend() { return this.m_batchSend; }



  public void mergeAttributes(Sender other) {
/*  96 */     assertAttributeEquals(other, "sender", "id", this.m_id, other.getId());

/*  98 */     if (other.getUrl() != null) {
/*  99 */       this.m_url = other.getUrl();
    }

/* 102 */     if (other.getType() != null) {
/* 103 */       this.m_type = other.getType();
    }

/* 106 */     if (other.getSuccessCode() != null) {
/* 107 */       this.m_successCode = other.getSuccessCode();
    }

/* 110 */     this.m_batchSend = other.getBatchSend();
  }

  public Sender setBatchSend(boolean batchSend) {
/* 114 */     this.m_batchSend = batchSend;
/* 115 */     return this;
  }

  public Sender setId(String id) {
/* 119 */     this.m_id = id;
/* 120 */     return this;
  }

  public Sender setSuccessCode(String successCode) {
/* 124 */     this.m_successCode = successCode;
/* 125 */     return this;
  }

  public Sender setType(String type) {
/* 129 */     this.m_type = type;
/* 130 */     return this;
  }

  public Sender setUrl(String url) {
/* 134 */     this.m_url = url;
/* 135 */     return this;
  }

  public Sender() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-alarm-3.0.0.jar!/com/dianping/cat/alarm/sender/entity/Sender.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */